-- GENERATED SPELL FOR [Serpent Defender] --


function spell0_29693(pUnit, Event) --@Tail Lash,n/a--
pUnit:FullCastSpellOnTarget(34811,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29693', 544, 1)
end

function Sorts_29693(pUnit, Event)
local choix_sorts_29693 = math.random(0, 0)
if choix_sorts_29693 == 0 then
pUnit:RegisterEvent('spell0_29693', 1, 1)
end
end

function mob29693_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29693', math.random(1500, 3000), 1)
end

function mob29693_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29693_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29693_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29693, 1, 'mob29693_Action')
RegisterUnitEvent(29693, 2, 'mob29693_Leave')
RegisterUnitEvent(29693, 3, 'mob29693_Kill')
RegisterUnitEvent(29693, 4, 'mob29693_Die')
